home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / VIEWS.ZIP;1 / CVDZIP.EXE / CVBOUNCE.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-20  |  521 b   |  42 lines

  1. /*
  2.     cvbounce.cpp
  3.  
  4.     Bouncing String class--used by Bouncing About box
  5.  
  6.     C++/Views 2.0 Demo
  7.     Copyright (c) 1992, by Liant Software Corp.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12. */
  13.  
  14. #include "cvbounce.h"
  15.  
  16. defineClass(Bouncer, VObject)
  17.  
  18. Bouncer::Bouncer()
  19. {
  20.     ;
  21. }
  22.  
  23. Bouncer::Bouncer(char *s, int x, int y) : str(s)
  24. {
  25.     curX = x;
  26.     curY = y;
  27.     oldY = -10;
  28.     oldY2 = -10;
  29.     yVel = 0;
  30. }
  31.  
  32. Bouncer::~Bouncer()
  33. {
  34.     ;
  35. }
  36.  
  37. boolean Bouncer::free()
  38. {
  39.     delete this;
  40.     return(TRUE);
  41. }
  42.